﻿<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>banner</title>
<link href="css/login/style.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="js/common/jquery.min.js"></script>
<script type="text/javascript">
	$(
			function() {
				//顶部导航切换
				$(".nav li a").click(function() {
					//$(".nav li a").removeClass("selected")
					$(this).addClass("selected");
				})
				function requestMsg() {
					$
							.post(
									'messageAction!msgCount.action',
									{},
									function(data) {
										msgCount = data.msgCount;
										document.getElementById("messageCount").innerHTML = msgCount;
									});
					setTimeout(requestMsg, 5000);
				}
				$
						.post(
								'indexAction!queryUserMenu.action',
								{},
								function(data) {
									var list = data.list;
									var menu_list = '';
									for (var i = 0; i < list.length; i++) {
										var item = list[i];
										var clickstr = "$(\".nav li a\").removeClass(\"selected\");$(this).addClass(\"selected\");top.expendTree(\""
												+ item.id + "\")";
										menu_list += "<li><a href='#' onclick='"
													+clickstr+"'><img src='css/login/imgs/";
										var icon = '';
										if (item.id == 1) {
											icon = "icon01";
										} else if (item.id == 2) {
											icon = "i06";
										} else if (item.id == 30) {
											icon = "icon04";
										} else if (item.id == 32) {
											icon = "icon03";
										}
										menu_list += icon;
										menu_list += ".png' title=" + item.name
												+ " /><h2>" + item.name
												+ "</h2></a></li>";
									}
									document.getElementById("manu").innerHTML = menu_list;
									document.getElementById("user.username").innerHTML = list[0].username;
								});
				window.onload = function() {
					requestMsg();
				}
				/* function requestMsg() {
				setTimeout(requestMsg, 5000);
				$.post('letterStationAction!getMessageNum.action', {}, function(data) {
					msgCount = data.data.value;
					document.getElementById("messageCount").innerHTML = msgCount;
				}); */
			})
</script>

</head>

<body style="background: url(css/login/imgs/topbg.gif) repeat-x;">

	<div class="topleft">
		<img src="images/login/logo.png" title="系统首页"
			style="height: 80%; margin-top: 10px; margin-left: 12px;"></img> <img
			src="css/login/imgs/leftwords.png" title="系统首页"
			style="height: 57%; margin-top: 0; margin-left: 17px; margin-right: 25px;"></img>
	</div>

	<ul id="manu" class="nav">
		<!-- <li><a href="javascript:void(0);" class="selected"><img
				src="css/login/imgs/icon01.png" title="系统设置" />
				<h2>系统设置</h2></a></li>
		<li><a href="javascript:void(0);"><img
				src="css/login/imgs/icon02.png" title="资源中心" />
				<h2>资源中心</h2></a></li>
		<li><a href="javascript:void(0);"><img
				src="css/login/imgs/icon03.png" title="报表管理" />
				<h2>报表管理</h2></a></li>
		<li><a href="javascript:void(0);"><img
				src="css/login/imgs/icon04.png" title="运维管理" />
				<h2>运维管理</h2></a></li>
		<li><a href="javascript:void(0);"><img
				src="css/login/imgs/icon05.png" title="项目管理" />
				<h2>项目管理</h2></a></li>
		<li><a href="javascript:void(0);"><img
				src="css/login/imgs/icon06.png" title="日常工作" />
				<h2>日常工作</h2></a></li>
		<li><a href="javascript:void(0);"><img
				src="css/login/imgs/icon07.png" title="信息服务" />
				<h2>信息服务</h2></a></li>
		<li><a href="javascript:void(0);"><img
				src="css/login/imgs/icon08.png" title="通讯服务" />
				<h2>通讯服务</h2></a></li> -->
	</ul>

	<div class="topright">
		<ul>
			<li><span><img src="css/login/imgs/tele.png" title="联系我们" /></span><a
				href="#" onclick='top.help()'>&nbsp;联系我们</a></li>
			<li><a href='#' onclick='top.changepsw()'>重置密码</a></li>
			<li><a href='#' onclick='top.logout()'>退出 </a></li>
		</ul>
		<div class="user">
			<span id='user.username' title='个人信息' style="cursor: pointer;"
				onclick='top.profile()'>管理员</span> <i title='站内信'
				onclick='top.message()' style="cursor: pointer;">我的新消息</i> <b
				id='messageCount'></b>
		</div>
	</div>
</body>
</html>
